﻿Public Class SinhVienBUS
    Public Function Insert(ByVal sv As SinhVienDTO) as Boolean
        Dim svDAO As New SinhVienDAO
        Return svDAO.Insert(sv)
    End Function
    Public Sub Delete(ByVal sv As SinhVienDTO)
        Dim svDAO As New SinhVienDAO
        svDAO.Delete(sv)
    End Sub
    Public Sub Update(ByVal sv As SinhVienDTO)
        Dim svDAO As New SinhVienDAO
        svDAO.Update(sv)
    End Sub
    Public Function GetAll() As DataTable
        Dim svDAO As New SinhVienDAO
        Dim dt As New DataTable
        dt = svDAO.GetAll()
        Return dt
    End Function
    Public Sub GetItemID(ByVal tenDN As String, ByRef sv As SinhVienDTO, ByRef tk As TaiKhoanDTO)
        Dim svDAO As New SinhVienDAO
        svDAO.GetItemID(tenDN, sv, tk)
    End Sub
    Public Function CheckEmail(ByVal sv As SinhVienDTO) As Boolean
        Dim svDAO As New SinhVienDAO
        Return svDAO.CheckEmail(sv)
    End Function
    Public Function GetItemMaSinhVien(ByVal masv As Integer) As SinhVienDTO
        Dim svDAO As New SinhVienDAO
        Return svDAO.GetItemMaSinhVien(masv)
    End Function
    Public Function GetItemTenDN(ByVal tenDN As String) As SinhVienDTO
        Dim svDAO As New SinhVienDAO
        Return svDAO.GetItemTenDN(tenDN)
    End Function

    Public Function TimCMND(ByVal svDTO As SinhVienDTO) As DataTable
        Dim svDAO As New SinhVienDAO
        Return svDAO.TimCMND(svDTO)
    End Function
    Public Function TimDienThoai(ByVal svDTO As SinhVienDTO) As DataTable
        Dim svDAO As New SinhVienDAO
        Return svDAO.TimDienThoai(svDTO)
    End Function
    Public Function TimEmail(ByVal svDTO As SinhVienDTO) As DataTable
        Dim svDAO As New SinhVienDAO
        Return svDAO.TimEmail(svDTO)
    End Function
    Public Function TimHoTen(ByVal svDTO As SinhVienDTO) As DataTable
        Dim svDAO As New SinhVienDAO
        Return svDAO.TimHoTen(svDTO)
    End Function
    Public Function TimMaSinhVien(ByVal svDTO As SinhVienDTO) As DataTable
        Dim svDAO As New SinhVienDAO
        Return svDAO.TimMaSinhVien(svDTO)
    End Function
End Class
